<template>
	<view>
		<u-cell-group v-for="(item,index) in list" :key="index">
			<u-cell size="large" :title="item.title" :url="item.url" v-if="menus.includes(item.role)"
				icon="setting-fill" isLink></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	import {
		mapState,
	} from 'vuex'
	export default {
		data() {
			return {
				list: [{
						title: '融合版商品',
						url: '/pages/home/fusion/fusion',
						role: 'douyin/fusion',
					},
					{
						title: '融合版订单',
						url: '/pages/home/diandan/jialiaozu/index',
						role: 'douyin/goods',
					},
					{
						title: '融合版规格组',
						url: '/pages/home/specifications/specifications',
						role: 'douyin/specifications',
					},
					{
						title: '融合版加料组',
						url: '/pages/home/fusionfeedinggroup/fusionfeedinggroup',
						role: 'douyin/fusionfeedinggroup',
					},
					{
						title: '融合版加料品',
						url: '/pages/home/fusionadditive/fusionadditive',
						role: 'douyin/fusionadditive',
					},
				]
			}
		},
		methods: {

		},
		computed: {
			...mapState({
				menus: state => state.menus,
			}),
		}
	}
</script>

<style>

</style>